﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Snake.Model
{
    class coordonnee
    {
        private int CorpsX;
        private int CorpsY;


        public Boolean Equals(coordonnee C)
        {
            Boolean b=false;
            
            
            if(this.CorpsX==C.CorpsX && this.CorpsY==C.CorpsY) b=true;

            return b;
        }

        public coordonnee()
        {
            this.CorpsX = 0;
            this.CorpsY = 0;

        }

        public coordonnee(int X, int Y)
        {
            this.CorpsX = X;
            this.CorpsY = Y;

        }

        public int X
        {
            get { return this.CorpsX; }
            set { this.CorpsX = value; }

        }

        public int Y
        {
            get { return this.CorpsY; }
            set { this.CorpsY = value; }

        }

    }
}
